<<<<<<< HEAD
=======
<<<<<<< HEAD
import request from '@/utils/request'

// 获取菜单列表接口
export const getMenusListApi = () => {
    return request({
        method: "get",
        url: "/menus"
    })
}
// 菜单添加
export const addMenusApi = (data) => {
    return request({
        method: "post",
        url: "/menus",
        data
    })
}
// 菜单详情
export const getMenusInfoApi = (id) => {
    return request({
        method: "get",
        url: "/menus/" + id,

    })
}

// 菜单修改
export const editMenusApi = (data) => {
    return request({
        method: "put",
        url: "/menus/" + data.id,
        data
    })
}
// 删除
export const delMenusApi = (id) => {
    return request({
        method: "delete",
        url: "/menus/" + id
    })
}
=======
>>>>>>> gxd
import request from "@/utils/request";

// 菜单列表
export const getMenusListApi = () => {
    return request({
        url: "/menus",
        method: "get",
    });
};
// 菜单详情
export const getMenusInfoApi = (id) => {
    return request({
        url: "/menus/" + id,
        method: "get",
    });
};
// 菜单添加
export const addMenusApi = (data) => {
    return request({
        url: "/menus",
        method: "post",
        data,
    });
};
// 菜单删除
export const delMenusApi = (id) => {
    return request({
        url: "/menus/" + id,
        method: "DELETE",
    });
};
// 菜单修改
export const editMenusApi = (data) => {
    return request({
        url: "/menus/" + data.id,
        method: "put",
        data,
    });
};
<<<<<<< HEAD
=======
>>>>>>> zsd
>>>>>>> gxd
